package library.utils;

public class Info {
	
	private String info;
	private boolean success;
	
	public static Info success(String info) {
		Info i = new Info(info);
		i.success = true;
		return i;
	}
	
	public Info(String info) {
		this.info = info;
	}

	public void setSuccess(boolean s) {
		success = s;
	}
	
	public boolean isSuccess() {
		return success;
	}
	
	@Override
	public String toString() {
		return info;
	}
	
}
